﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NeosSDI.MVC4.ProjectTemplateWizard
{
    public partial class SolutionWizard : Form
    {
        private string solutionName;

        public SolutionWizard()
        {
            InitializeComponent();
            this.Load += new EventHandler(SolutionWizard_Load);
        }

        void SolutionWizard_Load(object sender, EventArgs e)
        {
            textBoxSolutionName.Text = DefaultName;
        }

        internal string GetSolutionName()
        {
            return solutionName;
        }

        public void SetText(string text)
        {
            richTextBox1.Text += text;
        }

        private void button1_Click(object sender, EventArgs e)
        {

            solutionName = textBoxSolutionName.Text;
            this.Dispose();
        }

        public string DefaultName { get; set; }
    }
}
